namespace go industics.blockchain.purchase

include "base.thrift"

service PurchaseService {
    base.BaseGetResp GetPurchaseRequire(1:base.BaseGetReq req)
    base.BaseGetResp GetPurchaseOrder(1:base.BaseGetReq req)
    base.BaseGetResp GetPurchaseContract(1:base.BaseGetReq req)

    base.BaseGetResp GetPurchaseRequireHistory(1:base.BaseGetReq req)
    base.BaseGetResp GetPurchaseOrderHistory(1:base.BaseGetReq req)
    base.BaseGetResp GetPurchaseContractHistory(1:base.BaseGetReq req)

    base.BaseGetResp GetPurchaseRequireByRange(1:base.BaseRangeGetReq req)
    base.BaseGetResp GetPurchaseOrderByRange(1:base.BaseRangeGetReq req)
    base.BaseGetResp GetPurchaseContractByRange(1:base.BaseRangeGetReq req)

    base.BasePostResp CreatePurchaseRequire(1:base.BasePostReq req)
    base.BasePostResp CreatePurchaseOrder(1:base.BasePostReq req)
    base.BasePostResp CreatePurchaseContract(1:base.BasePostReq req)

    base.BasePutResp UpdatePurchaseRequire(1:base.BasePutReq req)
    base.BasePutResp UpdatePurchaseOrder(1:base.BasePutReq req)
    base.BasePutResp UpdatePurchaseContract(1:base.BasePutReq req)

    base.BaseDeleteResp DeletePurchaseRequire(1:base.BaseDeleteReq req)
    base.BaseDeleteResp DeletePurchaseOrder(1:base.BaseDeleteReq req)
    base.BaseDeleteResp DeletePurchaseContract(1:base.BaseDeleteReq req)
}